#{extends 'orgLead.html' /}
#{ifErrors} 
	${error} 
#{/ifErrors}

#{if topics}
<form action = "@{Application.setRelationBetweenTopics()}">
<input type = "hidden" name = "currentId" value = "${tId}">
<input type = "hidden" name = "depId" value = "${dId}">
<select name = "toSetId">
#{list items:topics, as:'top'}
<option value = "${top.id}">${top.title}</option>
#{/list}
</select>
<input type = "text" id = "relation" name = "relation"><span style="color: #c00"
										class="error">#{error 'set' /}</span><br>
<input type = "submit" value = "Set Relation">
</form>
#{/if} 
#{else}
No Other Topics to set Relations with!!
#{/else}

<br>
<br>
<a href = "@{Application.viewTopicById(tId)}">Back to Topic</a>